#{extends 'main.html' /}
#{set title:'Home' /}

Product creation

<form action="@{Products.doUpdate()}" method="POST">

	<div>
		<label for="product.name">Name</label><br/>
		<input type="text" name="product.name" value="${product.name}"/><br/>
		<span class="error">#{error 'product.name' /}</span>
	</div>

	<label for="product.description">Description</label><br/>
	<input type="textarea" name="product.description" value="${product.description}"/><br/>

	<div>
		<label for="product.price">Price</label><br/>
		<input type="text" name="product.price" value="${product.price}"/><br/>
		<span class="error">#{error 'product.price' /}</span>
	</div>
	
	<input type="hidden" name="product.id" value="${product.id}"/><br/>

	<input type="submit" name="submit" value="Update" />

</form>